<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>

        const data = `{"name":"jack","age":20,}`;

        console.log(1);
        console.log(2);
        try {
            console.log(JSON.parse(data));
        } catch (error) {
            console.log('error');
        }
        console.log(3);
        console.log(4);
        console.log(5);




    </script>
</body>

</html>